﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.ServiceModel;
using System.Text;
using WCFMINERP.BLL.OrderBll;
using WCFMINERP.Contracts.DataContracts;
using WCFMINERP.Contracts.InterFaces;

namespace WCFMINERP.Services.TransferFileServers
{
   
    public class OrderInfoServer : Iorderinfo
    {

        OrderInfoBll orderinfoBll = new OrderInfoBll();

        /// <summary>
        /// 根据TechId和状态为1获取订单列表
        /// </summary>
        /// <param name="techid"></param>
        /// <returns></returns>
        public List<Contracts.DataContracts.OrderInfo> GetOrderInfoData(int techid)
        {
            return orderinfoBll.getOrderInfo(techid);
        }

        /// <summary>
        /// 根据产品ID和岗位提交当前流程
        /// </summary>
        /// <param name="orderProductid"></param>
        /// <param name="techid"></param>
        /// <param name="mess"></param>
        /// <returns></returns>
        public OrderInfo CommitTech(string orderProductCode, int techid, int userid, out string mess, out string imgpath)
        {
            return orderinfoBll.commitTech(orderProductCode, techid,userid,out mess, out imgpath);
        }

        /// <summary>
        /// 查询产品信息
        /// </summary>
        /// <param name="orderProductCode"></param>
        /// <param name="mess"></param>
        /// <returns></returns>
        public OrderInfo SercahProduct(string orderProductCode, out string mess)
        {
            return orderinfoBll.SercahProduct(orderProductCode,out mess);
        }
    }
}
